package com.dragon.modules.yuegou.model.act;

import com.dragon.modules.yuegou.entity.act.OffMemberActivityEntity;
import com.dragon.modules.yuegou.enums.act.OffMemberActivityIsPrize;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 会员参与活动表模型类
 * 
 * @author pbuilder generated
 * @date 2019-11-19 20:10:23
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class OffMemberActivity extends OffMemberActivityEntity {

	/**
	 * 构造一个空会员参与活动表模型对象
	 */
	public OffMemberActivity(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员参与活动表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public OffMemberActivity(OffMemberActivityEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员参与活动表模型对象
	 * 
	 * @param other 其它对象
	 */
	public OffMemberActivity(OffMemberActivity other){
		super(other);
	}

	@ApiModelProperty("总数")
	private long total;

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public OffMemberActivity id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员Id
	 * 
	 * @param memberId 会员Id
	 * @return 当前对象
	 */
    public OffMemberActivity memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getMemberHead() {
    	return memberHead;
    }

    /**
	 * 设置会员头像
	 * 
	 * @param memberHead 会员头像
	 * @return 当前对象
	 */
    public OffMemberActivity memberHead(String memberHead) {
    	this.memberHead = memberHead;
    	return this;
    }

	@Override
	public String getMemberMobile() {
    	return memberMobile;
    }

    /**
	 * 设置会员手机号码
	 * 
	 * @param memberMobile 会员手机号码
	 * @return 当前对象
	 */
    public OffMemberActivity memberMobile(String memberMobile) {
    	this.memberMobile = memberMobile;
    	return this;
    }

	@Override
	public String getActivityId() {
    	return activityId;
    }

    /**
	 * 设置活动Id
	 * 
	 * @param activityId 活动Id
	 * @return 当前对象
	 */
    public OffMemberActivity activityId(String activityId) {
    	this.activityId = activityId;
    	return this;
    }

	@Override
	public String getPrizeId() {
    	return prizeId;
    }

    /**
	 * 设置奖品Id
	 * 
	 * @param prizeId 奖品Id
	 * @return 当前对象
	 */
    public OffMemberActivity prizeId(String prizeId) {
    	this.prizeId = prizeId;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public OffMemberActivity orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public String getGrade() {
    	return grade;
    }

    /**
	 * 设置奖品级别
	 * 
	 * @param grade 奖品级别
	 * @return 当前对象
	 */
    public OffMemberActivity grade(String grade) {
    	this.grade = grade;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置商品Id
	 * 
	 * @param skuId 商品Id
	 * @return 当前对象
	 */
    public OffMemberActivity skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public OffMemberActivityIsPrize getIsPrize() {
    	return isPrize;
    }

    /**
	 * 设置[枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED
	 * 
	 * @param isPrize [枚举]中奖状态：0-未中奖-NOT_WON、1-已中奖-HAS_WON、2-已领取-RECEIVED
	 * @return 当前对象
	 */
    public OffMemberActivity isPrize(OffMemberActivityIsPrize isPrize) {
    	this.isPrize = isPrize;
    	return this;
    }

    @Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public OffMemberActivity createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
